<template>
	<view class="content" v-if="show">
		<view class="map">
			<map style="height: 100%;width: 100%" :latitude="latitude" :longitude="longitude" :markers="markers"
				:scale="scale"></map>
		</view>
		<view style="position: fixed;top: 20px;right: 20px;bottom: auto;height: 30px;width: 30px;z-index: 1;" @click="close()">
			<image src="../static/icon_035.png" mode="aspectFit" style="width: 30px;height: 30px;"></image>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'zoomMap',
		data() {
			return {
				show: false
			};
		},
		props: {
			latitude: {
				type: String,
				default: "34.76",
			},
			longitude: {
				type: String,
				default: "113.65",
			},
			markers: {
				type: Array,
				default: null
			}
		},
		methods: {
			close() {
				this.show = false;
			},
		}
	}
</script>

<style lang="scss">
	.content {
		position: relative;

		.map {
			position: fixed;
			left: 0;
			right: 0;
			top: 0;
			bottom: 0;
			z-index: 1;
		}
	}
</style>